﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;

namespace MVC.Models
{
    [Bind(Exclude = "CategoryId")]
    public partial class Category
    {
        [ScaffoldColumn(false)]
        public int CategoryId { get; set; }

        [ScaffoldColumn(false)]
        public int CategoryId { get; set; }        
                
        [Required(ErrorMessage = "Category Name is required")]
        [DisplayName("Category Name")]
        [StringLength(45)]
        public string CategoryName { get; set; }

        [ScaffoldColumn(false)]
        public int OrderId { get; set; }

        [ScaffoldColumn(false)]
        public int IsDeleted { get; set; }

        [ScaffoldColumn(false)]
        public System.DateTime CreateDate { get; set; }

        [ScaffoldColumn(false)]
        public System.DateTime UpdateDate { get; set; }

        public List<Product> Groups { get; set; }
    }
}
